package yjj.system.controller;



import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import yjj.model.web.Result;
import yjj.system.service.TenantService;

@RestController
@RequestMapping("/tenants")
@Tag(name = "租户管理")
public class TenantController {

    @Autowired
    private TenantService tenantService;

    @GetMapping
    @Operation(summary = "租户列表")
    public Result list() {
        return Result.success(tenantService.list());
    }
}
